<!DOCTYPE html>
<html>
<head>
    <title>Easy Thumbnails Demo</title>
</head>
<body>
    <h1>Upload an Image</h1>
    <form method="post" enctype="multipart/form-data">
        {% csrf_token %}
        {{ form.as_p }}
        <button type="submit">Upload</button>
    </form>

    <h2>Uploaded Images</h2>
    <ul>
        {% for image in images %}
            <li>
                <img src="{{ image.image.url }}" alt="{{ image.title }}" style="max-height: 200px;">
                <p>{{ image.title }}</p>
                <a href="{% url 'edit_image' image.pk %}">Edit</a>
            </li>
        {% endfor %}
    </ul>
</body>
</html>
